#pragma once
#include "Entity.h"

class Enemy : public Entity
{
public:
	Enemy();
	~Enemy();

	virtual void	Update(float elapsedTime)		override;
	virtual void	Render(void)					override;

	virtual int GetType(void) const override	{ return ENT_ENEMY; }

	virtual void HandleCollision(const IEntity* pOther)	override;

	void SetTarget(IEntity* target) { m_Target = target; }

protected:
	IEntity* m_Target;

	int m_nHealth;
	int m_nDamage;

	float m_fMoveSpeed;
	float m_fAttackSpeed;
	float m_fAttackTimer;
	float m_fAttackRange;

	bool m_bIsPlayerPhermoned = false;

};

